﻿/*-------------------------------------------------------------------------
* 命名空间: ScreenCapture.Models/ViewModelBinder
* 类       名: ViewModelBinder
* 功      能:  TD
* 时      间:  2023/12/6 14:31:40
* 版      本:  V1.0
* 作      者:  Fioman
* 格      言:  Talk is cheap,show me the code ^_^
*-------------------------------------------------------------------------*/
using ScreenCapture.Base.Services;
using ScreenCapture.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ScreenCapture.Models
{
    /// <summary>
    /// 注册绑定ViewModel的服务接口和实例
    /// </summary>
    public class ViewModelBinder : IModule
    {
        public void OnLoad(IBinder MyBinder)
        {
            // 主窗口的ViewModel加载.
            MyBinder.BindSingleton<MainViewModel>();
            MyBinder.BindSingleton<RecordViewModel>();
        }

        public void Dispose() { }
    }
}
